<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
      * {
            padding: 0;
            margin: 0;
            text-decoration: none;
            list-style: none;
            box-sizing: border-box;
        }
        header {
            width: 100%;
            display: flex;
            align-items: end;
            height: 60px;
            background-repeat: no-repeat;
            background-position: 5px center;
            border-bottom: 1px solid rgb(41, 67, 143);
            box-shadow: 1px 10px 10px 0px rgba(0, 0, 0, .3);
            background-color: rgb(41, 67, 143);
        }

        nav {
            display: inline-block;
            display: flex;
            margin-left: 160px;
            margin-bottom: 10px;
            width: 70%;
            border-right: 1px solid rgb(41, 67, 143);
        }

        nav li {
            flex: 1;
            height: 50px;
            margin: 0px 20px;

        }

        nav li a {
            display: inline-block;
            width: 100%;
            height: 100%;
            text-align: center;
            line-height: 50px;
            color:rgb(247, 247, 247);
            font-weight: 900;

        }

        nav li a:hover {
            border-bottom: 5px solid rgb(149, 149, 151);
        }

        header div {
            width: 100px;
            height: 40px;
            border: 2px solid #090808;
            border-radius: 32px;
            text-align: center;
            line-height: 40px;
            color: rgb(244, 245, 247);
            margin-left: 30px;
        }

        header div a {
            color:rgb(250, 250, 250);
            width: 99%;
            height: 99%;

        }
        .a{
            margin-bottom: 15px;

        }
    
    </style>
</head>
<body>
  
    <script>
        let arr = ['首页','企业概况','企业新闻','产品介绍','留言板']
        let src= ['index.html','demo_qygk.html','demo_qyxw.html','demo_cpjs.html','demo_lyb.html']
         document.write('<header><nav>')
            for(let i=0;i<arr.length;i++){
                document.write(`<li><a href="${src[i]}" target="_parent">${arr[i]}</a></li>`)
            }
       
          

    </script>
 
</body>
</html>